package com.example.test.sendMessage;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.TimeZone;


public class KeyUtils {

	public static String createKey(String factor) {
		TimeZone zone = TimeZone.getTimeZone("GMT");//格林尼治标准时间
		SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmm");
		sdf.setTimeZone(zone);
		Calendar cal = Calendar.getInstance(zone);
		String time=sdf.format(cal.getTime());
		String key=MD5.GetMD5Code(factor+time);
		return key;
	}
 

}
